/***
 * @Author: 玄绮 shijiahansi@qq.com
 * @Date: 2024-06-06 13:54:03
 * @LastEditors: 玄绮 shijiahansi@qq.com
 * @LastEditTime: 2024-06-06 13:54:47
 * @FilePath: \client\src\tools\http\UpLoadFile.h
 * @Description:
 * @
 * @Copyright (c) 2024 by 玄绮, All Rights Reserved.
 */

#include <QNetworkAccessManager>
#include <QUrl>

class UpLoadFile : public QObject {
    Q_OBJECT
protected:
    static QNetworkAccessManager manager;

public:
    UpLoadFile(QObject *parent = nullptr);
    ~UpLoadFile();

    void put(QString filename);

signals:
    void finished(QString fileurl);

protected:
    void on_readyRead();
    void on_finished();
};
